/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package plar.Elements;

/**
 *
 * @author spok
 */

import java.awt.Point;
import plar.*;
import plar.Actions.*;


public  class Respawn extends Block {

        public Respawn(Point pos)
        {
          super(pos);
           properties.put("type", ElementType.Respawn);
            ((Point)properties.get("size")).x = 147;
            ((Point)properties.get("size")).y = 36;
            ((Collision)actions.get("collision")).blockType="platform";
            
            properties.put("respawn", new plar.Properties.CollisionDetect());
            actions.put("respawn", new plar.Actions.Respawn(this) );
            
            getAction("show").setSprites(new Sprites(new Sprite("respawn.png")));

        }
 
}
